﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace TsCore
{
    [Table("Sports")]
    public class Sport
    {
        [Key]
        public Int32 SportId { get; set; }
        [MaxLength(255)]
        public String Name { get; set; }
        public virtual List<Team> Teams { get; set; }

        public override bool Equals(object obj)
        {
            return this.SportId.Equals(((Sport)obj).SportId);
        }
    }
}
